const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
	pages: {
		index: {
			template: 'public/index.html',
			entry: 'src/main.js',
			filename: 'index.html',
			title:'CFDD健身操舞官方网站',
		}
	},
  transpileDependencies: true,
  lintOnSave:false,
  publicPath: '/',
	 //配置跨域请求
	 devServer: {
	  open: true, //是否自动打开浏览器
	  https: false, //是否开启https
	  proxy: { // 配置跨域
	   '/api': {
	    target: 'http://47.101.130.227:9000', //请求接口域名 
	    // target: 'http://anwsqg.natappfree.cc', //请求接口域名 
	    changOrigin: true, //是否允许跨越
	    pathRewrite: {
	     '^/api': '/api'
	    }
	   }
	  },
    host: 'localhost',
    port: 8080,
		historyApiFallback:true
	 },
	 configureWebpack: {
		performance: {
			hints:false
		}
	 }
})